﻿using Abp.Domain.Repositories;
using Abp.EntityFrameworkCore;
using Abp.Net.Sms;
using Abp.Runtime.Caching;
using HCD.Const;
using HCD.Entities;
using Partner.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HCD.DomainServices.Hcd
{
    public class UserScreeningManager : EnterpriseDomainServiceBase, IUserScreeningManager
    {
        public IRepository<UserScreening, long> UserScreeningRep { get; set; }
        public IRepository<UserScreeningDetail, long> UserScreeningDetailRep { get; set; }
        
        public async Task DeleteUserScreening(long id)
        {
            await UserScreeningRep.DeleteAsync(id);
            await UserScreeningDetailRep.DeleteAsync(m => m.Id == id);
            
        }
    }
}
